#pragma once

#include "GdiplusHelper.h"
#include "ControlExt.h"


class CCustomStatic : public CStatic, public CControlExt
{
public:
	CCustomStatic();
	virtual ~CCustomStatic();

	void SetRTLFormat() {  m_nStringFormat.SetFormatFlags(StringFormatFlagsDirectionRightToLeft); }

private:
	CDC* m_pMemDestDC;
	CBitmap* m_pMemDestBitmap;

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnPaint();

protected:
	virtual void PreSubclassWindow();
	void DrawBackground();
	void DrawControl();
	void DrawString(CDC& dc);
};


